package com.bjpowernode.crm.workbench.service.serviceimpl;

import com.bjpowernode.crm.workbench.dao.ContactsDao;
import com.bjpowernode.crm.workbench.eneity.Contacts;
import com.bjpowernode.crm.workbench.service.ContactsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContactsServiceImpl implements ContactsService {
    @Autowired
    private ContactsDao contactsDao;

    @Override
    public List<Contacts> getContactsList(String contactsName) {
        List<Contacts> contactsList=contactsDao.getContactsList(contactsName);
        return contactsList;
    }
}
